package fyp.spedmew;

import android.app.Application;
import android.util.Log;

import com.parse.Parse;
import com.parse.PushService;

public class Application_main extends Application {

    public Application_main() {
    }

    @Override
    public void onCreate() {

        //   ParsePush.subscribeInBackground("", new SaveCallback() {
        //      @Override        super.onCreate();

        // Initialize the Parse SDK.
        // Parse.initialize(this, "YOUR_APP_ID", "YOUR_CLIENT_KEY");


        Parse.initialize(this, "0iRh6BKLg2NYKuzJUH4jPz7uzyxFhxVuhJhjyBZo", "OHxpyS4ncYOutl5tqsISIC2ZqqIQrLZUZqAcvpCS");
        PushService.setDefaultPushCallback(this, LoginpageActivityBarActivity.class);

        Log.d("com.parse.push", "testing " );


        //          if (e == null) {
        //           Log.d("com.parse.push", "successfully subscribed to the broadcast channel.");
        //      } else {
        //         Log.e("com.parse.push", "failed to subscribe for push", e);
        //     }
        //  /   }
        // });



        // Specify an Activity to handle all pushes by default.
        // PushService.setDefaultPushCallback(this, LoginpageActivityBarActivity.class);
    }
}